axios({
	url:'cdCategory/list?pageNo=1&pageSize=9999'
}).then(res=>{
	// console.log(res.data.result.records)
	const list=res.data.result.records
	document.querySelector('.recLitTitle').innerHTML=list.map(item=>{
		return `<a data-id=${item.id}>${item.cname}</a>`
	}).join('')
})
document.querySelector('.recLitTitle').addEventListener('click',e=>{
	console.log(e.target.dataset.id)
	const id=e.target.dataset.id
	location.href=`./resCategory.html?id=${id}`
})